<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2022-04-28
  Time: 8:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"
isELIgnored="false" %>
<html>
<head>
    <title>管理文章</title>
</head>
<body>
<table>
    <tr>
        <td colspan="4"><a href="${pageContext.request.contextPath}/author/home">返回上一级</a> </td>
    </tr>
    <tr>
        <th>文章标题</th>
        <th>审核进度</th>
        <th>查看文章</th>
        <th>删除文章</th>
    </tr>
    <c:forEach items="${newsSet}" var="news">
        <tr>
            <td>${news.title}</td>
            <td>
                <c:if test="${news.checked == true}">
                    已通过
                </c:if>
                <c:if test="${news.checked == false}">
                    未通过
                </c:if>
            </td>
            <td><a href="${pageContext.request.contextPath}/author/check_edit/${news.id}">查看/修改</a></td>
            <td><a href="${pageContext.request.contextPath}/author/del_news/${news.id}">删除</a></td>
        </tr>
    </c:forEach>

</table>
</body>
</html>
